package com.hopu.oa.service.task;


import com.hopu.oa.entity.management.AoaStatusList;
import com.hopu.oa.entity.management.AoaTypeList;
import com.hopu.oa.entity.task.AoaTaskLogger;
import com.hopu.oa.entity.task.AoaTaskUser;
import com.hopu.oa.entity.task.AoaTasklist;
import com.hopu.oa.entity.task.TongJiWangCeng;
import com.hopu.oa.entity.user.AoaUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Secret
 * @create 2021-07-17 上午 09:19
 */
public interface TaskService {
    List<AoaTasklist> findAllTask(int userId, String title, int page, int size, String var);

    int querystatusIdById(int id);

    List<TongJiWangCeng> selectTongJi();

    //添加修改
    List<AoaStatusList> selectBytaskList();

    List<AoaTypeList> selectByTypelist();

    List<AoaUser> selectByfatherId(int uid, String userName, int page, int size);

    int insertTaskList(AoaTasklist tasklist);

    int insertIntotaskUser(int statusId, int taskId, int taskReciveUserId);

    AoaTasklist selectBytaskId(int id);

    AoaStatusList selectByStatusListId(int sid);

    AoaTypeList selectByLypeId();

    int updateTaskList(AoaTasklist tasklist);

    int insertintoLogger(String starTime, int taskId, String username, int statusId);

    //我的任务
    List<AoaTasklist> selectTaskList(int userId, String title, int page, int size);

    List<AoaTasklist> findTasklistAll();

    List<AoaTaskLogger> findTaskloggerAll();

    AoaTasklist queryTasklistById(int id);

    AoaUser queryUserInfoById(int id);

    AoaStatusList queryStatusListById(int id);

    int updateLogger(@Param("loggerStatusid") int loggerStatusid, @Param("loggerTicking") String loggerTicking, @Param("taskId") int taskId);

    int updateTask(@Param("loggerStatusid") int loggerStatusid, @Param("taskId") int taskId);

    int updateTaskUser(@Param("loggerStatusid") int loggerStatusid, @Param("taskId") int taskId, @Param("uid") int uid);

    int myshanchu(int id);


}
